home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10806 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  827 b 

  1. Path: news1.radix.net!news
  2. From: jfw@radix.net (Jim Ward)
  3. Newsgroups: comp.lang.c
  4. Subject: macros.h
  5. Date: Wed, 20 Mar 1996 01:45:41 GMT
  6. Organization: RadixNet Internet Services
  7. Message-ID: <4innq4$f9p@news1.radix.net>
  8. NNTP-Posting-Host: dialin28.annex3.radix.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. What is the purpose of macros.h?
  12.  
  13. I ran across it today, it has some nice macros, so I tried to 
  14. include it and use some of them, but the following inclusion failed:
  15.  
  16.     #include <macros.h>
  17.     #include <stdlib.h>
  18.  
  19. because both macros.h and stdlib.h define an abs().
  20.  
  21. From my point of view, this is a bug in the C
  22. implementation because a /usr/include inclusion should never fail.
  23. However my attempt failed on two compilers, a SUN and an HP,
  24. which leads me to believe the fault is mine. Can anyone
  25. enlighten me?
  26.  
  27. Jim Ward
  28.  
  29.